import React from 'react'

interface SimpleStatusBarProps {
  currentFile: {
    path: string
    content: string
  } | null
  wordCount: number
}

const SimpleStatusBar: React.FC<SimpleStatusBarProps> = ({ currentFile, wordCount }) => {
  if (!currentFile) return null

  return (
    <div className="h-6 px-4 bg-gray-100 dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 flex items-center justify-between text-xs text-gray-600 dark:text-gray-400">
      <span className="truncate max-w-md">
        {currentFile.path.split('/').pop() || 'Untitled'}
      </span>
      <span className="ml-4">
        {wordCount} words
      </span>
    </div>
  )
}

export default SimpleStatusBar